import React, { Component } from 'react';
import { Button } from 'antd';
import { HashRouter as Router,Switch, Route,Link } from 'react-router-dom';


class Center extends Component {
    constructor(props) {
        super(props);
        this.state = {};
    }
  
    onGoBackHome = () => {
        history.go(-1); 
     }
     render() {
         return (
             <div className="center-container">
                 <p>这里是个人中心页面</p>
                 <Button onClick={this.onGoBackHome}>返回主页</Button>
             </div>
         );
     }
}

export default Center;